projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
794e558
)
(x_produce_glyphs): Don't set it->ascent and it->descent
author
Kenichi Handa
<handa@m17n.org>
Wed, 6 Feb 2008 11:54:51 +0000
(11:54 +0000)
committer
Kenichi Handa
<handa@m17n.org>
Wed, 6 Feb 2008 11:54:51 +0000
(11:54 +0000)
to negative value.
src/xdisp.c
patch
|
blob
|
history
diff --git
a/src/xdisp.c
b/src/xdisp.c
index 2993fbe912f83c62104f53a57acdf81536d18553..6e1b06a5aeef63254dc65f17a9ef171f7bba3249 100644
(file)
--- a/
src/xdisp.c
+++ b/
src/xdisp.c
@@
-21398,8
+21398,11
@@
x_produce_glyphs (it)
it->pixel_width = cmp->pixel_width;
it->ascent = it->phys_ascent = cmp->ascent;
+ if (it->ascent < 0)
+ it->ascent = it->phys_ascent = 0;
it->descent = it->phys_descent = cmp->descent;
-
+ if (it->descent < 0)
+ it->descent = it->phys_descent = 0;
if (face->box != FACE_NO_BOX)
{
int thick = face->box_line_width;